/* 全局样式 */
:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
}

/* 侧边栏样式 */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #343a40;
    color: #fff;
    transition: all 0.3s;
    height: 100vh;
    position: fixed;
    z-index: 1000;
    overflow-y: auto;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #212529;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #4b545c;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px 15px;
    font-size: 1.1em;
    display: block;
    color: #ced4da;
    text-decoration: none;
}

#sidebar ul li a:hover {
    color: #fff;
    background: #2c3136;
}

#sidebar ul li.active > a, #sidebar a[aria-expanded="true"] {
    color: #fff;
    background: #2c3136;
}

#sidebar ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #2c3136;
}

#sidebar .sidebar-footer {
    padding: 15px;
    font-size: 0.8em;
    color: #6c757d;
    text-align: center;
    border-top: 1px solid #4b545c;
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* 内容区域样式 */
#content {
    width: 100%;
    padding: 0;
    min-height: 100vh;
    transition: all 0.3s;
    position: relative;
    margin-left: 250px;
}

#content.active {
    margin-left: 0;
}

#content .navbar {
    background: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 10px 20px;
}

.content-iframe {
    height: calc(100vh - 56px);
    width: 100%;
    overflow: hidden;
}

.content-iframe iframe {
    height: 100%;
    width: 100%;
    border: none;
}

/* 顶部导航栏样式 */
.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 表格样式 */
.table-container {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 20px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-title {
    margin: 0;
    font-size: 1.5rem;
}

.table-tools {
    display: flex;
    align-items: center;
}

/* 表单样式 */
.form-container {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-container .form-title {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.form-group label {
    font-weight: 600;
}

/* 按钮样式 */
.btn-container {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    width: 400px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    font-size: 40px;
    color: #28a745;
    margin-bottom: 15px;
}

.login-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.login-button {
    font-weight: bold;
    padding: 10px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8em;
    color: #6c757d;
}

/* 仓库管理页面样式 */
.warehouse-container {
    padding: 20px;
    background-color: #f4f6f9;
}

.content-header {
    margin-bottom: 20px;
}

.action-btn {
    margin-right: 5px;
}

.dataTables_wrapper {
    padding: 0;
}

/* 表单样式 */
.form-group.required .control-label:after {
    content: "*";
    color: red;
    margin-left: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        margin-left: 0;
    }
    #content.active {
        margin-left: 250px;
    }
    .warehouse-container {
        padding: 10px;
    }
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    font-weight: bold;
} 